package com.ry.est.dao;

import com.ry.est.entity.MalfunctionOptions;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MalfunctionOptionsDao {
    int deleteByPrimaryKey(Long id);

    int insert(MalfunctionOptions record);

    int insertSelective(MalfunctionOptions record);

    MalfunctionOptions selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MalfunctionOptions record);

    int updateByPrimaryKey(MalfunctionOptions record);

    List<MalfunctionOptions> listByMalfId(@Param("malFunctionId") Long malFunctionId, @Param("isDelete") Integer isDelete);

    /**
     * 根据故障id查询选项信息
     * @param ids
     * @return
     */
    List<MalfunctionOptions> listByIds(List<Long> ids);
}